package com.tacc.tyun.base;

/**
 * @author yu sheng qiang
 * @create 2017-03-22 16:43
 **/
public final class BaseConstant {
    //常用状态
    public static String CODE_SUCCESS = "success";//操作成功
    public static String CODE_ERROR="error";//操作失败
    public static Integer CODE_AUTOLOGIN_Y=1;//自动登录
    public static Integer CODE_AUTOLOGIN_N=2;//非自动登录
    public static String COOKIE_LOGINNAME="COOKIE_LOGINNAME";//保存到COOKIE中登录名信息
    public static String COOKIE_PASSWORD="COOKIE_PASSWORD";//保存到COOKIE中登录密码信息
    public static String SESSION_USERINFO="SESSION_USERINFO";//保存到Session中信息
    //错误提醒
    public static String LOGIN_ERROR_NOID="登录名不存在！";
    public static String LOGIN_ERROR_PSW="登录名与密码不一致！";
    public static String DATABASE_ERROR_DELETE="删除失败!";
    public static String DATABASE_ERROR_INSERT="添加失败!";
    public static String DATABASE_ERROR_UPDATE="修改失败!";
    public static String DATABASE_ERROR_CANSHU="参数错误!";
    public static String DATABASE_ERROR_BUCHUNZAI="没有匹配的数据!";
    public static String LOGIN_USERIS_Y="登录名【NAME】已经存在!";
    //数据保存模板
    public static String data_user_templet="{\"id\":\"ID\",\"password\":\"PASSWORD\",\"name\":\"NAME\"}";
    /** 分页默认参数 */
    public static final int PAGE_NUM = 1;
    public static final int PAGE_SIZE = 15;
    //标志
    public static final String REMOVE_Y="Y";
    public static final String REMOVE_N="N";
    public static final Integer REMOVE_YES=1;
    public static final Integer REMOVE_NO=0;

    //操作状态
    public static int SUCCESS=1;
    public static int FAIL=2;
    //菜单基本
    public static final String MENU_ONE="1";//一级菜单
    public static final String MENU_TWO="2";//二级菜单
    public static final String MENU_CODE_MIN="10";//菜单最小code值

    public static final String MSG_MENU_MAXID="0";
    public static final Integer MSG_MENU_ONE=1;//一级菜单

    //最小的登录次数1
    public static final String LOGIN_COUNT_MIN="1";//最小的登录次数

    //菜单头部
    public  static final String HEAD_TITLE="<ul class=\"breadcrumb no-border no-radius b-b b-light pull-in\">\n" +
            "              <li><a href=\"javaScript:void(0);\"><i class=\"fa fa-home\"></i> 首页</a></li>\n" +
            "             CONTENT" +
            "            </ul>";
    //菜单头部上级页面
    public static final String HEAD_TITLE_BASE_CONTENT="<li><a href=\"HREF\">TITLE</a></li>";
    //菜单头部当前页面
    public static final String HEAD_TITLE_CURRENT_CONTENT="<li class=\"active\">TITLE</li>";
    //菜单href的默认内容
    public static final String HEAD_TITLE_HREF_CONTENT="javaScript:void(0);";

    //短信阅读标准
    public static final String NOTE_REDA_Y="Y";//已阅读
    public static final String NOTE_REDA_N="N";//未阅读

    //新增或更新
    public static final String FLAG_ADD="add";//新增
    public static final String FLAG_UPDATE="update";//更新

    //菜单是否子节点
    public static final String MSG_MENU_IS_LEAFTAG="1";
    public static final String MSG_MENU_NOT_LEAFTAG="0";

    //轮播是否启用
    public static final String BANNER_YES="1";//启用
    public static final String BANNER_NO="2";//不启用
}
